package com.sneakxy.mybatis.commons.repository.config;

import java.lang.annotation.Annotation;

import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport;
import org.springframework.data.repository.config.RepositoryConfigurationExtension;

/**
 * 注解启动
 * @author 潜行的青衣
 */
public class MybatisRepositoryBeanDefinitionRegistrar extends RepositoryBeanDefinitionRegistrarSupport {

	/* (non-Javadoc)
	 * @see org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport#getAnnotation()
	 */
	@Override
	protected Class<? extends Annotation> getAnnotation() {
		return EnableMybatisCommonsRepositories.class;
	}

	/* (non-Javadoc)
	 * @see org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport#getExtension()
	 */
	@Override
	protected RepositoryConfigurationExtension getExtension() {
		return new MybatisRepositoryConfigurationExtension();
	}

}
